mbr_source = mbr.s
mbr_target = mbr.bin

hard_disk = ../kernel.img

build:
	nasm ${mbr_source} -o ${mbr_target}

burn:
	dd if=${mbr_target} of=${hard_disk} bs=512
	
debug:
	qemu-system-x86_64 -hda ${hard_disk} -S -s

.PHONY clean:
	rm -fr ${mbr_target} ${hard_disk}

;set disassemble-next-line on
;show disassembly-flavor
;set disassembly-flavor intel